﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="FormProj.Index" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>

    <fieldset>
        <legend>普通登录</legend>
        <form action="<%=Request.RawUrl %>" method="post">
            登录名:<input type="text" name="loginName" style="width:200px;" value="Zz" />
            <input type="submit" name="NormalLogin" value="登录" />
        </form>
    </fieldset>
      <fieldset>
          <legend>
              用户状态
          </legend>
        <form id="form1" action="<%=Request.RawUrl %>" method="post">
              <%if(Request.IsAuthenticated){ %>
              当前用户已登录,登录名:<%= Context.User.Identity.Name %>
            <input type="submit" name="Logon" value="退出" />
              <%}else{ %>
            <b>当前用户还未登录</b>
            <%} %>
        </form>
      </fieldset>
    
</body>
</html>
